package com.ruoyi.fun.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 地区对象 hiolabs_region
 * 
 * @author ruoyi
 * @date 2025-01-16
 */
public class HiolabsRegion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区ID */
    private Long id;

    /** 父级地区ID */
    @Excel(name = "父级地区ID")
    private Long parentId;

    /** 地区名称 */
    @Excel(name = "地区名称")
    private String name;

    /** 地区类型(0:国家 1:省份 2:城市 3:区县) */
    @Excel(name = "地区类型", readConverterExp = "0=国家,1=省份,2=城市,3=区县")
    private Integer type;

    /** 代理ID */
    @Excel(name = "代理ID")
    private Long agencyId;

    /** 方位 */
    @Excel(name = "方位")
    private Integer area;

    /** 方位代码 */
    @Excel(name = "方位代码")
    private String areaCode;

    /** 偏远地区标识(0:否 1:是) */
    @Excel(name = "偏远地区标识", readConverterExp = "0=否,1=是")
    private Integer farArea;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setAgencyId(Long agencyId) 
    {
        this.agencyId = agencyId;
    }

    public Long getAgencyId() 
    {
        return agencyId;
    }
    public void setArea(Integer area) 
    {
        this.area = area;
    }

    public Integer getArea() 
    {
        return area;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setFarArea(Integer farArea) 
    {
        this.farArea = farArea;
    }

    public Integer getFarArea() 
    {
        return farArea;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("name", getName())
            .append("type", getType())
            .append("agencyId", getAgencyId())
            .append("area", getArea())
            .append("areaCode", getAreaCode())
            .append("farArea", getFarArea())
            .toString();
    }
}